package cn.itcast.java.junit;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * Author itcast
 * Date 2021/10/10 10:26
 * Desc TODO
 */
public class JunitTest {

    @Before
    public void init(){
        System.out.println("初始化数据库连接");
    }

    public void print(){
        System.out.println("Hello world!");
    }


    public void insert(){
        System.out.println("insert data into table!");
    }
    @Test
    public void delete(){
        System.out.println("delete from table");
    }

    @After
    public void close(){
        System.out.println("关闭连接");
    }

}
